package cn.com.lms.business.examRewrite.service;

import cn.com.lms.business.examRewrite.persistence.entity.QuestionCategoryReWriteVo;
import cn.com.lms.business.examRewrite.persistence.repository.QuestionCategoryReWriteVoDao;
import com.bnzj.core.persistence.BaseService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class QuestionCategoryWriteVoService extends BaseService<QuestionCategoryReWriteVoDao,QuestionCategoryReWriteVo,Long> {

    /**
     * 通过id获取题库名称+类型+试题数
     * @param id
     * @return
     */
    public List<QuestionCategoryReWriteVo> getQuestionNameAddTypeAddCountById(Long id) {
        return repository.getQuestionNameAddTypeAddCountById(id);
    }
}
